package com.foodchain.repository;

import com.foodchain.entity.News;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface NewsRepository extends JpaRepository<News, String> {

    News getByNewsType(String newsType);

    List<News> findByNewsType(String newsType);
}
